<!doctype html>
<html>
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
        <meta name="description" content="">
        <meta name="author" content="mandrill-cms">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><?php echo Mandrill::getApp()->title; ?></title>
        <link rel="shortcut icon" href="favicon.ico">
        <link rel="apple-touch-icon" href="apple-touch-icon.png">
        <?php echo $mlStylesheets; ?>
    </head>
    <body>
        <div class="ml-microblog-topbar">
            <div class="ml-microblog-topbar-wrapper">
                <ul class="ml-microblog-topbar-option-left">
                    <li class="ml-microblog-topbar-item"><h1><a href="#"><?php echo Mandrill::getApp()->title; ?></a></h1></li>
                    <li class="ml-microblog-topbar-item"><?php echo $searchForm; ?></li>
                </ul>
                <ul class="ml-microblog-topbar-option-right">
                    <?php if (!MSession::getInstance()->isLogged()): ?>
                    <li class="ml-microblog-topbar-item"><a id="signup" href="<?php echo __route('ml-microblog/home/signup'); ?>"><?php echo __t('mandrill.microblog.signup'); ?></a></li>
                    <li class="ml-microblog-topbar-item-right"><a id="signin" href="<?php echo __route('ml-microblog/home/login'); ?>"><?php echo __t('mandrill.microblog.signin'); ?></a></li>
                    <?php else: ?>
                    <li class="ml-microblog-topbar-item"><a id="createPost" href="<?php echo __route('ml-microblog/post/create'); ?>"><?php echo __t('mandrill.microblog.post'); ?></a></li>
                    <li class="ml-microblog-topbar-item-right"><a id="signout" href="<?php echo __route('ml-microblog/home/signout'); ?>"><?php echo __t('mandrill.microblog.signout'); ?></a></li>
                    <?php endif; ?>
                </ul>
            </div>
        </div>
        <div class="ml-microblog-wrapper">
            <div class="ml-microblog-container">
                <div class="ml-microblog-content">
                    <?php echo $mlContent; ?>
                </div>
                <div class="ml-microblog-sidebar">
                    <?php echo $mlSidebar; ?>
                </div>
            </div>
            <div class="ml-microblog-footer">
                <?php echo Mandrill::poweredBy(); ?>
            </div>
        </div>
        <script type="text/javascript">
            var strSignin = "<?php echo __t('mandrill.microblog.signin'); ?>";
            var strSignup = "<?php echo __t('mandrill.microblog.signup'); ?>";
        </script>
        <?php echo $mlScripts; ?>
    </body>
</html>